package com.example.everying.model.entity.appeal;/*
 * 项目名称: everything
 * 文件名: AppealRecord
 * 作者: 张泽阳
 * 日期: 2025/6/20
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import net.bytebuddy.implementation.bind.annotation.Pipe;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("appeal_record")
public class AppealRecord {
    /*
    * 申诉记录id
    * */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("申诉记录id")
    @NotNull(message = "id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("文章id")
    @NotNull(message = "文章id不能为空")
    private String articleId;

    @ApiModelProperty("订单金额")
    @NotNull(message = "订单金额不能为空")
    private BigDecimal money;

    @ApiModelProperty("申诉人id")
    @NotNull(message = "申诉人id不能为空")
    private String appealUserId;

    @ApiModelProperty("被申诉人id")
    @NotNull(message = "被申诉人id不能为空")
    private String beAppealUserId;

    @ApiModelProperty("申诉状态（0：申诉中，1：审核通过，2：撤销，3：审核失败）")
    @NotNull(message = "申诉状态不能为空")
    private String appealStatus;

    @ApiModelProperty("申诉人发布凭证次数")
    private Integer appealCount;

    @ApiModelProperty("被申诉人发布凭证次数")
    private Integer beAppealCount;

    @ApiModelProperty("交易类型")
    private Integer ArticleType;
    @ApiModelProperty("后台客服申诉检查状态（0：已读 1：未读）")
    private String checkStatus;

    @ApiModelProperty("申诉时间")
    @NotNull(message = "申诉时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime appealTime;

    @ApiModelProperty("更新时间")
    @NotNull(message = "更新时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;



}
